package com.david.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @Description: PaymentController
 * @Author: wangwei
 * @CreateDate: 2022/1/13 11:04
 */
@RestController
public class PaymentController {


    @Value("${server.port}")
    private  String serverPort;

    @GetMapping("/payment/consul")
    public String paymentConsul(){

        return "springcloud with consul:"+serverPort+"  >> "+ UUID.randomUUID().toString();
    }

}

